package DateUtil;

import com.google.gson.Gson;

import Model.Task;

/**
 * Created by areehy on 2016/8/12.
 */
public class ModelAnalysis {
    Gson gson = new Gson();

    public Task TaskAnalysis(String json){
        Task task = gson.fromJson(json,Task.class);
        return task;

    }
    public String TaskToJson(Task task)
    {
        String json = gson.toJson(task,Task.class);
        return json;
    }

}
